package com.motorola.dp.jenkinsmonitor.service.util;

import org.springframework.stereotype.Service;

/**
 *
 * Utility functions for working with Strings
 *
 */
@Service("stringService")
public class DefaultStringService implements StringService {

    /**
     *
     * Makes the first letter of the String capital
     *
     * @param s
     * @return capitalized String
     *
     */
    public String capitalize(String s) {
        return s.substring(0, 1).toUpperCase() + s.substring(1);
    }

}
